// CylinderDlg.cpp : implementation file
//

#include "stdafx.h"
#include "test.h"
#include "CylinderDlg.h"
#include "CubeFilter.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CCylinderDlg dialog


CCylinderDlg::CCylinderDlg(Mesh3D * mesh,CWnd* pParent /*=NULL*/)
	: CDialog(CCylinderDlg::IDD, pParent),malla(mesh)
{
	//{{AFX_DATA_INIT(CCylinderDlg)
	m_stacks = 1;
	m_slopes = 1;
	//}}AFX_DATA_INIT
}


void CCylinderDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CCylinderDlg)
	DDX_Text(pDX, IDC_STACKS, m_stacks);
	DDV_MinMaxInt(pDX, m_stacks, 1, 100);
	DDX_Text(pDX, IDC_SLOPES, m_slopes);
	DDV_MinMaxInt(pDX, m_slopes, 1, 100);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CCylinderDlg, CDialog)
	//{{AFX_MSG_MAP(CCylinderDlg)
	ON_BN_CLICKED(IDOK, On)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCylinderDlg message handlers

void CCylinderDlg::On() 
{
	// TODO: Add your control notification handler code here
	CylinderFilter filter;
	UpdateData(TRUE);
	filter(malla,m_slopes,m_stacks);
	CDialog::OnOK();
}
